//
//  CloudFront.h
//  cTypica
//
//  Created by David Kavanagh on 3/24/09.
//  Copyright 2009 directThought. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AWSQueryConnection.h"

@protocol DomainListProtocol;

@interface CloudFront : AWSQueryConnection {
}

- (id)initWithAccessId:(NSString *)aId secretKey:(NSString *)sKey;

- (id)initWithAccessId:(NSString *)aId secretKey:(NSString *)sKey hostName:(NSString *)hName;

//- (void)listDistributions:(NSString *)marker maxItems(int)maxItems receiver:(id<DistributionListProtocol>)receiver;

@end

// for receiving messages about domains
@protocol DistributionListProtocol
@optional
- (void)startNewDistributionList;
@required
// This method must return true to keep receiving data
- (BOOL)domainsReady:(NSArray *)distributionList;
@optional
- (void)endNewDistributionList;
@end
